-
Notifications
You must be signed in to change notification settings - Fork 3
Add Spline Path Publisher Component #108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Wojciech Czerski <[email protected]>
Signed-off-by: Wojciech Czerski <[email protected]>
Signed-off-by: Wojciech Czerski <[email protected]>
Signed-off-by: Wojciech Czerski <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not run the code, only browsed diagonally. Some nitpicks listed.
Gems/RobotecSplineTools/Code/Source/Clients/SplinePublisher.cpp
Outdated
Show resolved
Hide resolved
Gems/RobotecSplineTools/Code/Source/Clients/SplinePublisher.cpp
Outdated
Show resolved
Hide resolved
Gems/RobotecSplineTools/Code/Source/Clients/SplinePublisher.cpp
Outdated
Show resolved
Hide resolved
Gems/RobotecSplineTools/Code/Source/Clients/SplinePublisher.cpp
Outdated
Show resolved
Hide resolved
Gems/RobotecSplineTools/Code/Source/Clients/SplinePublisher.cpp
Outdated
Show resolved
Hide resolved
Gems/RobotecSplineTools/Code/Source/Clients/SplinePublisher.cpp
Outdated
Show resolved
Hide resolved
Gems/RobotecSplineTools/Code/Include/SplineTools/SplineToolsTypeIds.h
Outdated
Show resolved
Hide resolved
Gems/RobotecSplineTools/Code/Source/Clients/SplinePublisher.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Wojciech Czerski <[email protected]>
Signed-off-by: Wojciech Czerski <[email protected]>
Signed-off-by: Wojciech Czerski <[email protected]>
Gems/RobotecSplineTools/Code/Source/Clients/SplinePublisher.cpp
Outdated
Show resolved
Hide resolved
Gems/RobotecSplineTools/Code/Source/Clients/SplinePublisher.cpp
Outdated
Show resolved
Hide resolved
Gems/RobotecSplineTools/Code/Source/Clients/SplinePublisher.cpp
Outdated
Show resolved
Hide resolved
Gems/RobotecSplineTools/Code/Source/Clients/SplinePublisher.cpp
Outdated
Show resolved
Hide resolved
const ROS2::ROS2FrameComponent* ros2Frame = GetEntity()->FindComponent<ROS2::ROS2FrameComponent>(); | ||
if (!ros2Frame) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, the ros2Frame
can be assumed to exist because you connect to Tick bus after the check in line 68.
As far as I know, you can't remove/add components when entity is active, therefore we can be sure that nothing strange happen between the ticks (without deactivate/activate and frame re-check). Additionally, you can save the reference and reuse it here if needed - no need to find component in every tick.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, I've replaced it with AZ_Assert check.
ros2FramePtr
now is initialized OnActivate
and reused in PublishSplinePath
.
Signed-off-by: Wojciech Czerski <[email protected]>
Signed-off-by: Wojciech Czerski <[email protected]>
Signed-off-by: Wojciech Czerski <[email protected]>
Signed-off-by: Wojciech Czerski <[email protected]>
Signed-off-by: Wojciech Czerski <[email protected]>
Signed-off-by: Wojciech Czerski <[email protected]>
Signed-off-by: Wojciech Czerski <[email protected]>
I've added an update frequency option and readme. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great, I've tested it against #123
About:
This PR adds a component with a spline path publisher.
It exposes current entity attached spline as a path available for ros2.